<template>
	<view>
		<u-popup :show="show" mode="center"   @open="">
		        <view class="flex alPopup">
					<view class="buyerTitle">购买协议</view>
		            <view v-html="content"></view>
					<view class="sureBtn" @click="sureBtn">确定</view>
		        </view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
	
			}
		},
		methods: {
			sureBtn(){
				this.$emit("closeWindow", "")
			}	
		},
		props:{
			content:{
				type:String,
				default:''
			},
			show:{
				type:Boolean,
				default:false,
			}
		}
	}
</script>

<style>
	.alPopup {  flex-direction: column; padding: 20rpx; width: 600rpx; justify-content: center;}
	.alPopup .buyerTitle { font-weight: bold; text-align: center; margin-bottom: 20rpx; }
	.alPopup .sureBtn {
		text-align: center;
		color: blue;
		padding: 15rpx 0;
		margin-top: 20rpx;
	}
</style>
